package a01interfacedemo1;

public class Frog1 extends Animal2 implements Swim{
    public Frog1() {
    }

    public Frog1(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println("青蛙吃虫子");
    }

    @Override
    public void swim() {
        System.out.println("青蛙在蛙泳");
    }
}
